ISlave.FoeWriteFile 方法

从本机电脑读取档案并将其写入装置中。

命名空间IntervalZero.KINGSTAR.Base.Class

组合: IntervalZero.KINGSTAR.Base.Class (于 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0

语法

C#VB
IKsCommand FoeWriteFile(
       bool bootState,
       string name,
       uint password,
       string file
)
Function FoeWriteFile(
       bootState As Boolean,
       name As String,
       password As UInteger,
       file As String
) As IKsCommand

参数

bootState

型别:bool

判定从站是否处于 Bootstrap (Boot) 状态以使用 FoE。Boot 状态可用于更新韧体或配置从站的设定。

true:Boot 状态。

false:正常状态。

 

name

型别:string

欲写入装置的档案名称。

 

password

型别:uint

若装置需要密码以存取档案,则需在此设定密码,0 表示无密码。

 

file

型别:string

欲写入装置磁碟的路径档案。

回传值

型别:IKsCommand

回传一个方法的状态。

备注

EtherCAT 连结正常开启,从站状态将为 Init -> PreOp -> SafeOp -> Op,若在从站状态为 Op 时使用此方法,并设定 BootState true,则从站状态的变更将为 Op -> Init -> Boot,当任务完成,其状态将再次变更为 Init -> PreOp -> SafeOp -> Op。

可用的 EtherCAT 状态

ecatBoot, ecatPreOP, ecatSafeOP, ecatOP

参见

ISlave 介面

IntervalZero.KINGSTAR.Base.Class 命名空间